<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>资深UI/UX设计师 - 招聘详情</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #f97316;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-tertiary: #94a3b8;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --bg-gray: #f1f5f9;
            --bg-gray-dark: #e2e8f0;
            --border-light: #e2e8f0;
            --border-medium: #cbd5e1;
            --radius: 12px;
            --radius-sm: 8px;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            --shadow-strong: 0 4px 16px rgba(0, 0, 0, 0.12);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
            line-height: 1.6;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
            flex: 1;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 公司信息头部 */
        .company-header {
            background-color: var(--bg-white);
            padding: 16px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .company-header-content {
            display: flex;
            gap: 16px;
            align-items: center;
        }
        
        .company-logo-large {
            width: 72px;
            height: 72px;
            border-radius: 12px;
            background-color: var(--bg-gray);
            flex-shrink: 0;
            overflow: hidden;
        }
        
        .company-logo-large img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .company-header-info {
            flex: 1;
        }
        
        .company-name-large {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .company-meta-large {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .company-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .company-tag {
            background-color: var(--bg-gray);
            color: var(--text-secondary);
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
        }
        
        /* 职位卡片 */
        .job-card {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 16px;
            margin: 16px;
            box-shadow: var(--shadow);
        }
        
        .job-title-large {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 12px;
        }
        
        .job-salary-large {
            color: var(--secondary);
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .job-salary-large .hot-tag {
            background-color: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: normal;
        }
        
        .job-info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px 8px;
            margin-bottom: 16px;
        }
        
        .job-info-item {
            display: flex;
            flex-direction: column;
        }
        
        .info-label {
            font-size: 0.8rem;
            color: var(--text-tertiary);
            margin-bottom: 4px;
        }
        
        .info-value {
            font-size: 0.9rem;
            color: var(--text-primary);
        }
        
        /* 操作按钮组 */
        .action-buttons {
            display: flex;
            gap: 12px;
            padding: 0 16px 16px;
        }
        
        .main-action-btn {
            flex: 2;
            padding: 12px 0;
            border-radius: var(--radius);
            font-size: 0.95rem;
            font-weight: 500;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background-color: var(--primary);
            color: white;
        }
        
        .secondary-action-btn {
            flex: 1;
            padding: 12px 0;
            border-radius: var(--radius);
            font-size: 0.95rem;
            font-weight: 500;
            border: 1px solid var(--border-light);
            background-color: var(--bg-white);
            color: var(--text-secondary);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }
        
        .secondary-action-btn .icon {
            font-size: 1.1rem;
        }
        
        .secondary-action-btn .text {
            font-size: 0.75rem;
        }
        
        /* 职位详情内容 */
        .job-details-section {
            background-color: var(--bg-white);
            margin: 16px;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .section-title {
            font-size: 1rem;
            font-weight: 600;
            padding: 16px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .section-content {
            padding: 16px;
        }
        
        .job-description-content {
            font-size: 0.95rem;
            color: var(--text-primary);
            line-height: 1.8;
        }
        
        .job-description-content p {
            margin-bottom: 16px;
        }
        
        .job-description-content strong {
            color: var(--text-primary);
            font-weight: 600;
        }
        
        .requirements-list {
            padding-left: 20px;
            margin-bottom: 16px;
        }
        
        .requirements-list li {
            margin-bottom: 8px;
            font-size: 0.95rem;
        }
        
        /* 公司详情 */
        .company-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .gallery-image {
            aspect-ratio: 1;
            border-radius: var(--radius-sm);
            overflow: hidden;
        }
        
        .gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .company-intro-text {
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 16px;
        }
        
        .company-contact {
            background-color: var(--bg-gray);
            padding: 12px;
            border-radius: var(--radius-sm);
            margin-top: 16px;
        }
        
        .contact-title {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .contact-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .contact-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            overflow: hidden;
        }
        
        .contact-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .contact-details {
            flex: 1;
        }
        
        .contact-name {
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .contact-position {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        /* 留言区 */
        .comments-section {
            background-color: var(--bg-white);
            margin: 16px;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 80px;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .comments-count {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        
        .comment-sort {
            font-size: 0.85rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .comment-item {
            padding: 16px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            gap: 12px;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            flex-shrink: 0;
            overflow: hidden;
        }
        
        .comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
        }
        
        .comment-author {
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .comment-time {
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }
        
        .comment-text {
            font-size: 0.9rem;
            margin-bottom: 8px;
        }
        
        .comment-actions {
            display: flex;
            gap: 16px;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
        }
        
        .comment-action.liked {
            color: var(--primary);
        }
        
        /* 回复区 */
        .replies-container {
            margin-top: 12px;
            padding-left: 12px;
            border-left: 2px solid var(--bg-gray);
        }
        
        .reply-item {
            padding: 8px 0;
            display: flex;
            gap: 8px;
        }
        
        .reply-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        
        .reply-content {
            flex: 1;
            background-color: var(--bg-gray);
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
        }
        
        .reply-header {
            display: flex;
            gap: 8px;
            margin-bottom: 4px;
        }
        
        .reply-author {
            font-weight: 500;
            font-size: 0.8rem;
        }
        
        .reply-to {
            color: var(--text-secondary);
            font-size: 0.8rem;
        }
        
        .reply-text {
            margin-bottom: 6px;
        }
        
        .reply-actions {
            display: flex;
            gap: 12px;
            font-size: 0.75rem;
            color: var(--text-secondary);
        }
        
        /* 留言输入框 */
        .comment-input-container {
            position: fixed;
            bottom: 60px;
            left: 0;
            right: 0;
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-top: 1px solid var(--border-light);
            z-index: 900;
        }
        
        .comment-input-box {
            display: flex;
            gap: 12px;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            flex-shrink: 0;
            overflow: hidden;
        }
        
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .input-wrapper {
            flex: 1;
            position: relative;
        }
        
        .comment-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-light);
            border-radius: 20px;
            font-size: 0.9rem;
            resize: none;
            height: 40px;
            overflow-y: auto;
        }
        
        .send-comment {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
            text-decoration: none;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* 相似职位推荐 */
        .similar-jobs {
            padding: 0 16px 16px;
        }
        
        .similar-jobs-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 12px;
            padding-left: 4px;
        }
        
        .similar-job-item {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 12px;
            margin-bottom: 12px;
            box-shadow: var(--shadow);
            text-decoration: none;
            color: var(--text-primary);
            display: block;
        }
        
        .similar-job-title {
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 6px;
        }
        
        .similar-job-company {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }
        
        .similar-job-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
        }
        
        .similar-job-salary {
            color: var(--secondary);
            font-weight: 500;
        }
        
        .similar-job-location {
            color: var(--text-secondary);
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">职位详情</div>
        <button class="nav-action primary" id="shareBtn">
            <i class="fas fa-share-alt"></i>
        </button>
    </div>
    
    <!-- 公司信息头部 -->
    <div class="company-header">
        <div class="company-header-content">
            <div class="company-logo-large">
                <img src="https://picsum.photos/id/28/200/200" alt="公司Logo">
            </div>
            <div class="company-header-info">
                <div class="company-name-large">科技创新有限公司</div>
                <div class="company-meta-large">
                    <span>互联网/IT</span>
                    <span>500-1000人</span>
                    <span>已认证</span>
                </div>
                <div class="company-tags">
                    <span class="company-tag">融资B轮</span>
                    <span class="company-tag">带薪年假</span>
                    <span class="company-tag">五险一金</span>
                    <span class="company-tag">年度旅游</span>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 职位卡片 -->
    <div class="job-card">
        <div class="job-title-large">资深UI/UX设计师</div>
        <div class="job-salary-large">
            15k-25k · 13薪
            <span class="hot-tag">急聘</span>
        </div>
        
        <div class="job-info-grid">
            <div class="job-info-item">
                <span class="info-label">工作地点</span>
                <span class="info-value">北京市朝阳区</span>
            </div>
            <div class="job-info-item">
                <span class="info-label">经验要求</span>
                <span class="info-value">3-5年</span>
            </div>
            <div class="job-info-item">
                <span class="info-label">学历要求</span>
                <span class="info-value">本科及以上</span>
            </div>
            <div class="job-info-item">
                <span class="info-label">职位类型</span>
                <span class="info-value">全职</span>
            </div>
            <div class="job-info-item">
                <span class="info-label">发布时间</span>
                <span class="info-value">2小时前</span>
            </div>
            <div class="job-info-item">
                <span class="info-label">招聘人数</span>
                <span class="info-value">2人</span>
            </div>
        </div>
    </div>
    
    <!-- 操作按钮组 -->
    <div class="action-buttons">
        <button class="main-action-btn" id="applyBtn">
            <i class="fas fa-paper-plane"></i>
            <span>立即申请</span>
        </button>
        <button class="secondary-action-btn" id="collectBtn">
            <i class="far fa-bookmark icon"></i>
            <span class="text">收藏</span>
        </button>
        <button class="secondary-action-btn" id="messageBtn">
            <i class="far fa-comment icon"></i>
            <span class="text">咨询</span>
        </button>
    </div>
    
    <!-- 职位详情 -->
    <div class="job-details-section">
        <div class="section-title">职位描述</div>
        <div class="section-content">
            <div class="job-description-content">
                <p>我们正在寻找一位富有创造力和激情的资深UI/UX设计师加入我们的产品团队，负责公司核心产品的用户界面设计和用户体验优化。</p>
                
                <p><strong>主要工作职责：</strong></p>
                <ul class="requirements-list">
                    <li>负责产品的用户界面设计、交互设计，打造优质的用户体验</li>
                    <li>与产品经理、开发团队紧密合作，推动设计方案的落地实现</li>
                    <li>参与用户研究和可用性测试，持续优化产品体验</li>
                    <li>建立和维护产品设计规范和组件库</li>
                    <li>关注行业设计趋势，提出创新性的设计方案</li>
                </ul>
                
                <p><strong>任职要求：</strong></p>
                <ul class="requirements-list">
                    <li>本科及以上学历，设计相关专业，3年以上UI/UX设计经验</li>
                    <li>具备良好的审美能力和设计感觉，有成功的产品设计案例</li>
                    <li>熟练掌握Figma、Sketch等设计工具</li>
                    <li>了解前端开发技术，能够与开发团队有效沟通</li>
                    <li>具备良好的沟通能力和团队协作精神</li>
                </ul>
            </div>
        </div>
    </div>
    
    <!-- 公司详情 -->
    <div class="job-details-section">
        <div class="section-title">公司详情</div>
        <div class="section-content">
            <div class="company-gallery">
                <div class="gallery-image">
                    <img src="https://picsum.photos/id/20/300/300" alt="公司环境">
                </div>
                <div class="gallery-image">
                    <img src="https://picsum.photos/id/26/300/300" alt="公司环境">
                </div>
                <div class="gallery-image">
                    <img src="https://picsum.photos/id/42/300/300" alt="公司环境">
                </div>
            </div>
            
            <div class="company-intro-text">
                科技创新有限公司成立于2015年，是一家专注于人工智能和大数据领域的高科技企业。公司致力于为企业提供智能化解决方案，帮助客户实现数字化转型。我们拥有一支由行业专家组成的团队，核心成员来自国内外知名企业和高校。
            </div>
            
            <div class="company-info-grid job-info-grid">
                <div class="job-info-item">
                    <span class="info-label">成立时间</span>
                    <span class="info-value">2015年</span>
                </div>
                <div class="job-info-item">
                    <span class="info-label">总部地点</span>
                    <span class="info-value">北京市</span>
                </div>
                <div class="job-info-item">
                    <span class="info-label">融资阶段</span>
                    <span class="info-value">B轮</span>
                </div>
                <div class="job-info-item">
                    <span class="info-label">公司官网</span>
                    <span class="info-value">www.tech-innov.com</span>
                </div>
            </div>
            
            <div class="company-contact">
                <div class="contact-title">招聘联系人</div>
                <div class="contact-info">
                    <div class="contact-avatar">
                        <img src="https://picsum.photos/id/64/100/100" alt="招聘负责人">
                    </div>
                    <div class="contact-details">
                        <div class="contact-name">张女士</div>
                        <div class="contact-position">人力资源总监</div>
                    </div>
                    <button class="main-action-btn" style="flex: none; padding: 6px 16px; font-size: 0.85rem;">
                        <i class="fas fa-phone-alt"></i>
                        <span>联系</span>
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 相似职位推荐 -->
    <div class="similar-jobs">
        <div class="similar-jobs-title">相似职位推荐</div>
        
        <a href="#" class="similar-job-item">
            <div class="similar-job-title">UI/UX设计师（电商方向）</div>
            <div class="similar-job-company">未来科技有限公司 · 海淀区</div>
            <div class="similar-job-meta">
                <span class="similar-job-salary">12k-20k</span>
                <span class="similar-job-location">2年经验</span>
            </div>
        </a>
        
        <a href="#" class="similar-job-item">
            <div class="similar-job-title">资深交互设计师</div>
            <div class="similar-job-company">智慧互联科技 · 朝阳区</div>
            <div class="similar-job-meta">
                <span class="similar-job-salary">18k-28k</span>
                <span class="similar-job-location">5年经验</span>
            </div>
        </a>
        
        <a href="#" class="similar-job-item">
            <div class="similar-job-title">产品设计师（移动端）</div>
            <div class="similar-job-company">数字时代有限公司 · 西城区</div>
            <div class="similar-job-meta">
                <span class="similar-job-salary">14k-22k</span>
                <span class="similar-job-location">3年经验</span>
            </div>
        </a>
    </div>
    
    <!-- 留言区 -->
    <div class="comments-section">
        <div class="comments-header">
            <div class="section-title" style="padding: 0; margin: 0;">职位讨论</div>
            <div class="comments-count">28条留言</div>
            <div class="comment-sort">
                <span>最新</span>
                <i class="fas fa-chevron-down" style="font-size: 0.7rem;"></i>
            </div>
        </div>
        
        <div class="comment-item">
            <div class="comment-avatar">
                <img src="https://picsum.photos/id/91/100/100" alt="用户头像">
            </div>
            <div class="comment-content">
                <div class="comment-header">
                    <div class="comment-author">李小明</div>
                    <div class="comment-time">2小时前</div>
                </div>
                <div class="comment-text">请问贵公司这个职位需要加班吗？周末是否需要上班？</div>
                <div class="comment-actions">
                    <button class="comment-action">
                        <i class="far fa-thumbs-up"></i>
                        <span>12</span>
                    </button>
                    <button class="comment-action reply-btn">
                        <i class="far fa-comment"></i>
                        <span>回复</span>
                    </button>
                </div>
                
                <!-- 回复区 -->
                <div class="replies-container">
                    <div class="reply-item">
                        <div class="reply-avatar">
                            <img src="https://picsum.photos/id/64/100/100" alt="回复用户头像">
                        </div>
                        <div class="reply-content">
                            <div class="reply-header">
                                <span class="reply-author">张女士</span>
                                <span class="reply-to">回复 李小明</span>
                            </div>
                            <div class="reply-text">我们公司实行弹性工作制，一般不需要加班，周末双休。项目紧急时可能需要偶尔加班，但会有调休。</div>
                            <div class="reply-actions">
                                <button class="comment-action">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>5</span>
                                </button>
                                <button class="comment-action reply-btn">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="comment-item">
            <div class="comment-avatar">
                <img src="https://picsum.photos/id/22/100/100" alt="用户头像">
            </div>
            <div class="comment-content">
                <div class="comment-header">
                    <div class="comment-author">王小花</div>
                    <div class="comment-time">昨天 15:30</div>
                </div>
                <div class="comment-text">我有3年UI设计经验，主要做移动端APP设计，请问贵公司这个职位更看重UI还是UX能力？</div>
                <div class="comment-actions">
                    <button class="comment-action liked">
                        <i class="fas fa-thumbs-up"></i>
                        <span>8</span>
                    </button>
                    <button class="comment-action reply-btn">
                        <i class="far fa-comment"></i>
                        <span>回复</span>
                    </button>
                </div>
            </div>
        </div>
        
        <div class="comment-item">
            <div class="comment-avatar">
                <img src="https://picsum.photos/id/54/100/100" alt="用户头像">
            </div>
            <div class="comment-content">
                <div class="comment-header">
                    <div class="comment-author">赵大鹏</div>
                    <div class="comment-time">3天前</div>
                </div>
                <div class="comment-text">公司福利怎么样？有年度体检和团建活动吗？</div>
                <div class="comment-actions">
                    <button class="comment-action">
                        <i class="far fa-thumbs-up"></i>
                        <span>3</span>
                    </button>
                    <button class="comment-action reply-btn">
                        <i class="far fa-comment"></i>
                        <span>回复</span>
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 留言输入框 -->
    <div class="comment-input-container">
        <div class="comment-input-box">
            <div class="user-avatar">
                <img src="https://picsum.photos/id/65/100/100" alt="当前用户头像">
            </div>
            <div class="input-wrapper">
                <textarea class="comment-input" placeholder="有什么想了解的？"></textarea>
                <button class="send-comment" id="sendCommentBtn">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-compass nav-icon"></i>
            <span>发现</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-briefcase nav-icon"></i>
            <span>招聘</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </a>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // DOM元素
        const backBtn = document.getElementById('backBtn');
        const shareBtn = document.getElementById('shareBtn');
        const applyBtn = document.getElementById('applyBtn');
        const collectBtn = document.getElementById('collectBtn');
        const messageBtn = document.getElementById('messageBtn');
        const sendCommentBtn = document.getElementById('sendCommentBtn');
        const commentInput = document.querySelector('.comment-input');
        const replyBtns = document.querySelectorAll('.reply-btn');
        const likeBtns = document.querySelectorAll('.comment-action:not(.reply-btn)');
        
        // 返回按钮
        backBtn.addEventListener('click', function() {
            history.back();
        });
        
        // 分享按钮
        shareBtn.addEventListener('click', function() {
            showToast('分享链接已复制到剪贴板');
        });
        
        // 申请按钮
        applyBtn.addEventListener('click', function() {
            showToast('申请已提交，请等待企业回复');
        });
        
        // 收藏按钮
        collectBtn.addEventListener('click', function() {
            const icon = this.querySelector('.icon');
            const text = this.querySelector('.text');
            
            if (icon.classList.contains('far')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                text.textContent = '已收藏';
                showToast('已收藏该职位');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                text.textContent = '收藏';
                showToast('已取消收藏');
            }
        });
        
        // 咨询按钮
        messageBtn.addEventListener('click', function() {
            showToast('正在打开聊天窗口...');
        });
        
        // 发送评论
        sendCommentBtn.addEventListener('click', function() {
            const commentText = commentInput.value.trim();
            if (commentText) {
                showToast('评论已发布');
                commentInput.value = '';
                // 自动调整输入框高度
                adjustTextareaHeight();
            } else {
                showToast('请输入评论内容');
            }
        });
        
        // 回复按钮
        replyBtns.forEach(btn => {
            btn.addEventListener('click', function() {
                const author = this.closest('.comment-content, .reply-content').querySelector('.comment-author, .reply-author').textContent;
                commentInput.value = `回复 @${author}：`;
                adjustTextareaHeight();
                commentInput.focus();
            });
        });
        
        // 点赞功能
        likeBtns.forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const countSpan = this.querySelector('span');
                let count = parseInt(countSpan.textContent);
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('liked');
                    countSpan.textContent = count + 1;
                    showToast('点赞成功');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('liked');
                    countSpan.textContent = count - 1;
                    showToast('已取消点赞');
                }
            });
        });
        
        // 调整文本框高度
        commentInput.addEventListener('input', adjustTextareaHeight);
        
        function adjustTextareaHeight() {
            // 重置高度以正确计算滚动高度
            commentInput.style.height = 'auto';
            // 设置新高度，最大不超过100px
            const newHeight = Math.min(commentInput.scrollHeight, 100);
            commentInput.style.height = newHeight + 'px';
        }
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
    </script>
</body>
</html>

